<?php

namespace submodule\models;

use Yii;

/**
 * This is the model class for table "submodule_module".
 *
 * @property string $module
 * @property string $name
 * @property string $path
 * @property integer $iscore
 * @property string $version
 * @property string $description
 * @property string $setting
 * @property integer $disabled
 * @property integer $addtime
 * @property integer $updatetime
 */
class Module extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'submodule_module';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['iscore', 'disabled', 'addtime', 'updatetime', 'modelid'], 'integer'],
            [['setting'], 'string'],
            [['module', 'name', 'path'], 'string', 'max' => 50],
            [['version'], 'string', 'max' => 10],
            [['description'], 'string', 'max' => 250]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'module' => 'Module',
            'name' => 'Name',
            'path' => 'Path',
            'iscore' => 'Iscore',
            'version' => 'Version',
            'description' => 'Description',
            'setting' => 'Setting',
            'disabled' => 'Disabled',
            'addtime' => 'Addtime',
            'updatetime' => 'Updatetime',
        ];
    }
}
